/*
 * @Author: your name
 * @Date: 2020-10-07 15:01:21
 * @LastEditTime: 2020-10-19 17:42:45
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \longh_web\src\apis\user\EntBaseInfo.js
 */
//我的企业信息 API



import request from '@/utils/request'

//获取企业基本信息
export function getEntBaseInfo(id) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/info',
        method: 'POST',
        data: {
            id
        }
    })
}



// 编辑保存企业信息
export function updateEntBaseInfo(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/updateEntBaseInfo',
        method: 'POST',
        data
    })
}

// 我的资质证明列表

export function getZZPageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/getZZPageList',
        method: 'POST',
        data
    })
}


//新增资质
export function addEntCert(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/addEntCert',
        method: 'POST',
        data
    })
}

// 修改 资质
export function updateEntCert(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/updateEntCert',
        method: 'POST',
        data
    })
}

//获取资质详情
export function getEntCertById(id) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/getEntCertById',
        method: 'POST',
        data: {
            id
        }
    })
}


//根据主键删除企业资质/荣誉
export function deleteEntCertById(id) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/deleteEntCertById',
        method: 'POST',
        data: {
            id
        }
    })
}



//  获取荣誉 列表

export function getHonorPageList(data) {
    return request({
        url: '/wenge/microservice-supply-consumer-web/user/EntBaseInfo/getHonorPageList',
        method: 'POST',
        data
    })
}


